cmake_minimum_required(VERSION 2.6 FATAL_ERROR)
project(cufft)
find_package(CUDA REQUIRED)
if(CUDA_FOUND)

    set(CUDA_NVCC_FLAGS "-arch;sm_20")
	# collect source files
	file( GLOB src *.cpp )
	file( GLOB hdr *.hpp )
	file( GLOB cu  *.cu)

	CUDA_ADD_EXECUTABLE(cufft ${src} ${hdr} ${cu})
	CUDA_ADD_CUFFT_TO_TARGET(cufft)
	CUDA_ADD_CUBLAS_TO_TARGET(cufft)
else(CUDA_FOUND)
    message("CUDA is not installed on this system.")
endif()

